package com.bulletelc.apollopre.module.main.center.invoice.edit;

import com.bulletelc.apollopre.entity.InvoiceBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

/**
 * author: lhl
 * date  : 2018/01/29
 * desc  : TODO
 */

public interface EditInvoiceContract {

    interface View extends IView {
        void onSuccessAddInvoice();
        void onFailAddInvoice(String fail);
        void onErrorAddInvoice(String error);

        void onSuccessInvoiceDetail(InvoiceBean invoiceBean);
        void onFailInvoiceDetail(String fail);
        void onErrorInvoiceDetail(String error);

        void onSuccessEditInvoice();
        void onFailEditInvoice(String fail);
        void onErrorEditInvoice(String error);

    }

    interface Presenter extends IPresenter<View> {

        void addInvoice(String json);

        void getInvoiceDetail(int invoiceId);

        void editInvoice(int invoiceId,String json);
    }


}
